package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 *  6、评论景区
 */
@Entity(name = "xw_comment_scenic")
public class XwCommentScenic {

    /**
     * 评论景区id
     */
    @Column(name = "comm_sce_id")
    private Integer commSceId;

    /**
     * 景区加密id
     */
    @Column(name = "sce_encryptId")
    private String sceEncryptid;

    /**
     * 用户加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 景区类型（游山、玩水……）只能选择其一
     */
    @Column(name = "comm_sce_type")
    private String commSceType;

    /**
     * 景区类型加密id
     */
    @Column(name = "secType_encryptId")
    private String sectypeEncryptid;

    /**
     * 企业名称
     */
    @Column(name = "comm_sce_companyName")
    private String commSceCompanyname;

    /**
     * 游客用户名
     */
    @Column(name = "comm_user_name")
    private String commUserName;

    /**
     * 评价分数（满分：10分）
     */
    @Column(name = "comm_sce_Evalfraction")
    private String commSceEvalfraction;

    /**
     * 评价印象
     */
    @Column(name = "comm_sce_impress")
    private String commSceImpress;

    /**
     * 评价图片
     */
    @Column(name = "comm_sce_photo")
    private String commScePhoto;

    /**
     * 评价时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "comm_sce_time")
    private Date commSceTime;

    /**
     * 评价内容
     */
    @Column(name = "comm_sce_context")
    private String commSceContext;

    public XwCommentScenic(){

    }

    public XwCommentScenic(String sceEncryptid, String userEncryptid, String commSceType, String sectypeEncryptid, String commSceCompanyname, String commUserName, String commSceEvalfraction, String commSceImpress, String commScePhoto, Date commSceTime, String commSceContext) {
        this.sceEncryptid = sceEncryptid;
        this.userEncryptid = userEncryptid;
        this.commSceType = commSceType;
        this.sectypeEncryptid = sectypeEncryptid;
        this.commSceCompanyname = commSceCompanyname;
        this.commUserName = commUserName;
        this.commSceEvalfraction = commSceEvalfraction;
        this.commSceImpress = commSceImpress;
        this.commScePhoto = commScePhoto;
        this.commSceTime = commSceTime;
        this.commSceContext = commSceContext;
    }

    /**
     * @return comm_sce_id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getCommSceId() {
        return commSceId;
    }

    /**
     * @param commSceId
     */
    public void setCommSceId(Integer commSceId) {
        this.commSceId = commSceId;
    }

    /**
     * 获取景区加密id
     *
     * @return sce_encryptId - 景区加密id
     */
    public String getSceEncryptid() {
        return sceEncryptid;
    }

    /**
     * 设置景区加密id
     *
     * @param sceEncryptid 景区加密id
     */
    public void setSceEncryptid(String sceEncryptid) {
        this.sceEncryptid = sceEncryptid;
    }

    /**
     * 获取用户加密id
     *
     * @return user_encryptId - 用户加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置用户加密id
     *
     * @param userEncryptid 用户加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取景区类型（游山、玩水……）只能选择其一
     *
     * @return comm_sce_type - 景区类型（游山、玩水……）只能选择其一
     */
    public String getCommSceType() {
        return commSceType;
    }

    /**
     * 设置景区类型（游山、玩水……）只能选择其一
     *
     * @param commSceType 景区类型（游山、玩水……）只能选择其一
     */
    public void setCommSceType(String commSceType) {
        this.commSceType = commSceType;
    }

    /**
     * 获取景区类型加密id
     *
     * @return secType_encryptId - 景区类型加密id
     */
    public String getSectypeEncryptid() {
        return sectypeEncryptid;
    }

    /**
     * 设置景区类型加密id
     *
     * @param sectypeEncryptid 景区类型加密id
     */
    public void setSectypeEncryptid(String sectypeEncryptid) {
        this.sectypeEncryptid = sectypeEncryptid;
    }

    /**
     * 获取企业名称
     *
     * @return comm_sce_companyName - 企业名称
     */
    public String getCommSceCompanyname() {
        return commSceCompanyname;
    }

    /**
     * 设置企业名称
     *
     * @param commSceCompanyname 企业名称
     */
    public void setCommSceCompanyname(String commSceCompanyname) {
        this.commSceCompanyname = commSceCompanyname;
    }

    /**
     * 获取游客用户名
     *
     * @return comm_user_name - 游客用户名
     */
    public String getCommUserName() {
        return commUserName;
    }

    /**
     * 设置游客用户名
     *
     * @param commUserName 游客用户名
     */
    public void setCommUserName(String commUserName) {
        this.commUserName = commUserName;
    }

    /**
     * 获取评价分数（满分：10分）
     *
     * @return comm_sce_Evalfraction - 评价分数（满分：10分）
     */
    public String getCommSceEvalfraction() {
        return commSceEvalfraction;
    }

    /**
     * 设置评价分数（满分：10分）
     *
     * @param commSceEvalfraction 评价分数（满分：10分）
     */
    public void setCommSceEvalfraction(String commSceEvalfraction) {
        this.commSceEvalfraction = commSceEvalfraction;
    }

    /**
     * 获取评价印象
     *
     * @return comm_sce_impress - 评价印象
     */
    public String getCommSceImpress() {
        return commSceImpress;
    }

    /**
     * 设置评价印象
     *
     * @param commSceImpress 评价印象
     */
    public void setCommSceImpress(String commSceImpress) {
        this.commSceImpress = commSceImpress;
    }

    /**
     * 获取评价图片
     *
     * @return comm_sce_photo - 评价图片
     */
    public String getCommScePhoto() {
        return commScePhoto;
    }

    /**
     * 设置评价图片
     *
     * @param commScePhoto 评价图片
     */
    public void setCommScePhoto(String commScePhoto) {
        this.commScePhoto = commScePhoto;
    }

    /**
     * 获取评价时间
     *
     * @return comm_sce_time - 评价时间
     */
    public Date getCommSceTime() {
        return commSceTime;
    }

    /**
     * 设置评价时间
     *
     * @param commSceTime 评价时间
     */
    public void setCommSceTime(Date commSceTime) {
        this.commSceTime = commSceTime;
    }

    /**
     * 获取评价内容
     *
     * @return comm_sce_context - 评价内容
     */
    public String getCommSceContext() {
        return commSceContext;
    }

    /**
     * 设置评价内容
     *
     * @param commSceContext 评价内容
     */
    public void setCommSceContext(String commSceContext) {
        this.commSceContext = commSceContext;
    }

    @Override
    public String toString() {
        return "XwCommentScenic{" +
                "commSceId=" + commSceId +
                ", sceEncryptid='" + sceEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", commSceType='" + commSceType + '\'' +
                ", sectypeEncryptid='" + sectypeEncryptid + '\'' +
                ", commSceCompanyname='" + commSceCompanyname + '\'' +
                ", commUserName='" + commUserName + '\'' +
                ", commSceEvalfraction='" + commSceEvalfraction + '\'' +
                ", commSceImpress='" + commSceImpress + '\'' +
                ", commScePhoto='" + commScePhoto + '\'' +
                ", commSceTime=" + commSceTime +
                ", commSceContext='" + commSceContext + '\'' +
                '}';
    }
}